package com.github.operationlog;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.lang.reflect.Method;
import java.util.List;

@Setter
@Getter
@Builder
public class MethodAttribute {
    private String name;
    private Method method;
    private OperationType type;
    private String targetName;
    private String businessName;
    private Class<?> entityClass;

    /**
     * 方法参数是否是实体参数
     */
    private boolean entityParam;

    /**
     * 实体主键是方法列表的第几个参数,针对于方法参数不是实体参数的清空
     */
    private int primaryKeyPosition;

    /**
     *
     */
    private List<EntityField> entityFieldList;
}